<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Balance_type_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-balance_type_id" data-rule="required" data-source="balance_type/index"
                class="form-control selectpage" name="row[balance_type_id]" type="text"
                value="{$row.balance_type_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Clearing_form')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[clearing_form]-1">
                    <input id="row[clearing_form]-1" name="row[clearing_form]" type="radio" value="1" {if
                        $row.clearing_form==1}checked{/if} /> 秒结算
                </label>
                <label for="row[clearing_form]-2">
                    <input id="row[clearing_form]-2" name="row[clearing_form]" type="radio" value="2" {if
                        $row.clearing_form==2}checked{/if} /> 月结算
                </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_open')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[is_open]-1">
                    <input id="row[is_open]-1" name="row[is_open]" type="radio" value="1" {if
                        $row.is_open==1}checked{/if} /> 开启
                </label>
                <label for="row[is_open]-2">
                    <input id="row[is_open]-2" name="row[is_open]" type="radio" value="2" {if
                        $row.is_open==2}checked{/if} /> 关闭
                </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Withdrawal_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-withdrawal_start_time" class="form-control datetimepicker" data-date-format="HH:mm"
                data-use-current="true" name="row[withdrawal_start_time]" type="text"
                value="{$row.withdrawal_start_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Withdrawal_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-withdrawal_end_time" class="form-control datetimepicker" data-date-format="HH:mm"
                data-use-current="true" name="row[withdrawal_end_time]" type="text"
                value="{$row.withdrawal_end_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Withdrawal_min_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-withdrawal_min_money" class="form-control" step="0.01" name="row[withdrawal_min_money]"
                type="number" value="{$row.withdrawal_min_money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Withdrawal_max_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-withdrawal_max_money" class="form-control" step="0.01" name="row[withdrawal_max_money]"
                type="number" value="{$row.withdrawal_max_money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_charge')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_charge" class="form-control" step="0.01" name="row[service_charge]" type="number"
                value="{$row.service_charge|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tax_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tax_rate" class="form-control" name="row[tax_rate]" type="number"
                value="{$row.tax_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Withdrawal_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-withdrawal_number" class="form-control" name="row[withdrawal_number]" type="number"
                value="{$row.withdrawal_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remarks" class="form-control " rows="5" name="row[remarks]"
                cols="50">{$row.remarks|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio"
                        value="{$key}" {in name="key" value="$row.status" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                data-use-current="true" name="row[create_time]" type="text"
                value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>